﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebGetter
{
    public interface IRepository<T> where T : IEntity
    {
        void Save(T entity);
        void Remove(object id);
        void Remove(T entity);
        T Update(T entity);
        T GetByID(object id);
        IEnumerable<T> QueryBySample(T entity);
        IEnumerable<T> GetAll();
    }
}
